import axios  from "axios";

const request = axios.create({
  baseURL:'http://192.168.0.101',
  timeout:10000
})

request.interceptors.request.use(
  (config)=>{
    return config
  },
  (err)=> Promise.reject(err)
)

request.interceptors.response.use(
  (res)=>{
    return res.data
  },
  (err)=> Promise.reject(err)
)

export default request